﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;

namespace Arbore
{
    public class Nod:INod
    {
        public Guid ID;
        public Nod parentNode;
        private List<Nod> childrens;
        private string val;
        public Nod()
        {
            ID = Guid.NewGuid();
            parentNode = null;
            childrens = new List<Nod>();
            val = "";
        }
        public Nod(string V)
        {
            ID = Guid.NewGuid();
            parentNode = null;
            childrens = new List<Nod>();
            val = V;
         
        }

        public List<Nod> Childrens
        {
            get {return childrens; }
             set { childrens=value; }
        }

        public Nod ParentNode
        {
            get { return parentNode; }
            set { parentNode = value; }

        }

        public string Value
        {
            get { return val; }
            set { val = value; }
        }

    }

    internal interface INod
    {
     
    }
}
